package ui.test;

import org.testng.annotations.Test;
import pages.*;

public class Smoketest extends BasicTest {
    @Test
    public void homePageTest() {
        HomePage homePage = new HomePage(driver);
        homePage.open();
        assertCurrentPage(homePage);
    }

    @Test
    public void notebookPageTest() {
        HomePage homePage = new HomePage(driver);
        homePage.open();
        SectionNotebookPage sectionNotebookPage = homePage.openNotebooksSection();
        assertCurrentPage(sectionNotebookPage);
    }

    @Test
    public void MobilePageTest() {
        HomePage homePage = new HomePage(driver);
        homePage.open();
        SectionMobilePage sectionMobilePage = homePage.openMobileSection();
        assertCurrentPage(sectionMobilePage);
                  }
    @Test
    public void AppliancesPageTest() {
        HomePage homePage = new HomePage(driver);
        homePage.open();
        SectionAppliancesPage sectionAppliancesPage = homePage.openAppliancesSection();
        assertCurrentPage(sectionAppliancesPage);
    }

    @Test
    public void CaritemsPageTest() {
        HomePage homePage = new HomePage(driver);
        homePage.open();
        SectionCaritemsPage sectionCaritemsPage = homePage.openCaritemsSection();
        assertCurrentPage(sectionCaritemsPage);
    }
    @Test
    public void ChildrenPageTest () {
        HomePage homePage = new HomePage(driver);
        homePage.open();
        SectionChildrenPage sectionChildrenPage = homePage.openChildrenSection();
        assertCurrentPage(sectionChildrenPage);
    }

    @Test
    public void GardenPageTest() {
        HomePage homePage = new HomePage(driver);
        homePage.open();
        SectionGardenPage sectionGardenPage = homePage.openGardenSection();
        assertCurrentPage(sectionGardenPage);
    }

    @Test
    public void OutdoorPageTest() {
        HomePage homePage = new HomePage(driver);
        homePage.open();
        SectionOutdoorPage sectionOutdoorPage = homePage.openOutdoorSection();
        assertCurrentPage(sectionOutdoorPage);
    }

    @Test
    public void PhotoPageTest() {
        HomePage homePage = new HomePage(driver);
        homePage.open();
        SectionPhotoPage sectionPhotoPage = homePage.openPhotoSection();
        assertCurrentPage(sectionPhotoPage);
    }

    @Test
    public void ShoesPageTest() {
        HomePage homePage = new HomePage(driver);
        homePage.open();
        SectionShoesPage sectionShoesPage = homePage.openShoesSection();
        assertCurrentPage(sectionShoesPage);
    }

    @Test
    public void TicketsPageTest() {
        HomePage homePage = new HomePage(driver);
        homePage.open();
        SectionTicketsPage sectionTicketsPage = homePage.openTicketsSection();
        assertCurrentPage(sectionTicketsPage);
    }
}